package com.newtouch.bxzs.common.base.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 白名单
 *
 * <p>
 * <b>History:</b>
 * <table border="1">
 * <tr>
 * <th>Date</th>
 * <th>Operator</th>
 * <th>Memo</th>
 * </tr>
 * <tr>
 * <td>2021年8月18日</td>
 * <td>Amour</td>
 * <td>Create</td>
 * </tr>
 * </table>
 *
 * @author Amour
 *
 * @version 1.0.0
 * @since 1.0.0
 */

@Data
@TableName("ASSISTANT_WHITELIST")
@ApiModel(value = "白名单实体类")
public class WhiteList implements Serializable {

    @TableId(value = "WHITE_LIST_ID", type = IdType.ASSIGN_UUID)
    private String whiteListId;

    /**创建人ID*/
    @TableField("CREATE_USER_ID")
    private String createUserId;

    /**逻辑删除*/
    @TableField("IS_DELETE")
    @TableLogic(value = "0", delval = "1")
    private Boolean delState = false;

    /**创建时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @TableField(value = "CREATE_TIME", updateStrategy = FieldStrategy.IGNORED)
    private Date createTime;

    /**修改时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @TableField(value = "UPDATE_TIME", updateStrategy = FieldStrategy.IGNORED)
    private Date updateTime;

    /**备注*/
    @TableField("MEMO")
    private String memo;

    /**修改人ID*/
    @TableField("UPDATE_USER_ID")
    private String updateUserId;

    /**白名单url*/
    @TableField("WHITE_URL")
    private String whiteUrl;

    /**url代表的路径名*/
    @TableField("URL_NAME")
    private String urlName;
}
